Integrand size = 30, antiderivative size = 165 \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\frac {x^2 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {\left (4 a c^2 e+b^3 f-2 b c (c d+3 a f)\right ) \text {arctanh}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^2 \left (b^2-4 a c\right )^{3/2}}+\frac {f \log \left (a+b x^2+c x^4\right )}{4 c^2} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 165, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1677, 1658, 648, 632, 212, 642} \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\frac {\text {arctanh}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right ) \left (-2 b c (3 a f+c d)+4 a c^2 e+b^3 f\right )}{2 c^2 \left (b^2-4 a c\right )^{3/2}}+\frac {x^2 \left (-\left (x^2 \left (-2 a c f+b^2 f-b c e+2 c^2 d\right )\right )-b (a f+c d)+2 a c e\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {f \log \left (a+b x^2+c x^4\right )}{4 c^2} \]
[In]
[Out]
Rule 212
Rule 632
Rule 642
Rule 648
Rule 1658
Rule 1677
Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} \text {Subst}\left (\int \frac {x \left (d+e x+f x^2\right )}{\left (a+b x+c x^2\right )^2} \, dx,x,x^2\right ) \\ & = \frac {x^2 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\text {Subst}\left (\int \frac {2 a e-\frac {b (c d+a f)}{c}-\frac {\left (b^2-4 a c\right ) f x}{c}}{a+b x+c x^2} \, dx,x,x^2\right )}{2 \left (b^2-4 a c\right )} \\ & = \frac {x^2 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {f \text {Subst}\left (\int \frac {b+2 c x}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^2}-\frac {\left (4 a c^2 e+b^3 f-2 b c (c d+3 a f)\right ) \text {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^2 \left (b^2-4 a c\right )} \\ & = \frac {x^2 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {f \log \left (a+b x^2+c x^4\right )}{4 c^2}+\frac {\left (4 a c^2 e+b^3 f-2 b c (c d+3 a f)\right ) \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^2\right )}{2 c^2 \left (b^2-4 a c\right )} \\ & = \frac {x^2 \left (2 a c e-b (c d+a f)-\left (2 c^2 d-b c e+b^2 f-2 a c f\right ) x^2\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {\left (4 a c^2 e+b^3 f-2 b c (c d+3 a f)\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^2 \left (b^2-4 a c\right )^{3/2}}+\frac {f \log \left (a+b x^2+c x^4\right )}{4 c^2} \\ \end{align*}
Time = 0.16 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.06 \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\frac {\frac {2 \left (-2 a^2 c f+b \left (c^2 d-b c e+b^2 f\right ) x^2+a \left (b^2 f+2 c^2 \left (d+e x^2\right )-b c \left (e+3 f x^2\right )\right )\right )}{\left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {2 \left (4 a c^2 e+b^3 f-2 b c (c d+3 a f)\right ) \arctan \left (\frac {b+2 c x^2}{\sqrt {-b^2+4 a c}}\right )}{\left (-b^2+4 a c\right )^{3/2}}+f \log \left (a+b x^2+c x^4\right )}{4 c^2} \]
[In]
[Out]
Time = 0.21 (sec) , antiderivative size = 228, normalized size of antiderivative = 1.38
method | result | size |
default | \(\frac {\frac {\left (3 a b c f -2 a \,c^{2} e -b^{3} f +b^{2} c e -b \,c^{2} d \right ) x^{2}}{\left (4 a c -b^{2}\right ) c^{2}}+\frac {a \left (2 a c f -b^{2} f +e b c -2 c^{2} d \right )}{\left (4 a c -b^{2}\right ) c^{2}}}{2 c \,x^{4}+2 b \,x^{2}+2 a}+\frac {\frac {\left (4 a c f -b^{2} f \right ) \ln \left (c \,x^{4}+b \,x^{2}+a \right )}{2 c}+\frac {2 \left (-a b f +2 a c e -b c d -\frac {\left (4 a c f -b^{2} f \right ) b}{2 c}\right ) \arctan \left (\frac {2 c \,x^{2}+b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}}}{2 c \left (4 a c -b^{2}\right )}\) | \(228\) |
risch | \(\text {Expression too large to display}\) | \(1621\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 473 vs. \(2 (155) = 310\).
Time = 0.33 (sec) , antiderivative size = 970, normalized size of antiderivative = 5.88 \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\left [\frac {2 \, {\left ({\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} d - {\left (b^{4} c - 6 \, a b^{2} c^{2} + 8 \, a^{2} c^{3}\right )} e + {\left (b^{5} - 7 \, a b^{3} c + 12 \, a^{2} b c^{2}\right )} f\right )} x^{2} - {\left (2 \, a b c^{2} d - 4 \, a^{2} c^{2} e + {\left (2 \, b c^{3} d - 4 \, a c^{3} e - {\left (b^{3} c - 6 \, a b c^{2}\right )} f\right )} x^{4} + {\left (2 \, b^{2} c^{2} d - 4 \, a b c^{2} e - {\left (b^{4} - 6 \, a b^{2} c\right )} f\right )} x^{2} - {\left (a b^{3} - 6 \, a^{2} b c\right )} f\right )} \sqrt {b^{2} - 4 \, a c} \log \left (\frac {2 \, c^{2} x^{4} + 2 \, b c x^{2} + b^{2} - 2 \, a c + {\left (2 \, c x^{2} + b\right )} \sqrt {b^{2} - 4 \, a c}}{c x^{4} + b x^{2} + a}\right ) + 4 \, {\left (a b^{2} c^{2} - 4 \, a^{2} c^{3}\right )} d - 2 \, {\left (a b^{3} c - 4 \, a^{2} b c^{2}\right )} e + 2 \, {\left (a b^{4} - 6 \, a^{2} b^{2} c + 8 \, a^{3} c^{2}\right )} f + {\left ({\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} f x^{4} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} f x^{2} + {\left (a b^{4} - 8 \, a^{2} b^{2} c + 16 \, a^{3} c^{2}\right )} f\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, {\left (a b^{4} c^{2} - 8 \, a^{2} b^{2} c^{3} + 16 \, a^{3} c^{4} + {\left (b^{4} c^{3} - 8 \, a b^{2} c^{4} + 16 \, a^{2} c^{5}\right )} x^{4} + {\left (b^{5} c^{2} - 8 \, a b^{3} c^{3} + 16 \, a^{2} b c^{4}\right )} x^{2}\right )}}, \frac {2 \, {\left ({\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} d - {\left (b^{4} c - 6 \, a b^{2} c^{2} + 8 \, a^{2} c^{3}\right )} e + {\left (b^{5} - 7 \, a b^{3} c + 12 \, a^{2} b c^{2}\right )} f\right )} x^{2} - 2 \, {\left (2 \, a b c^{2} d - 4 \, a^{2} c^{2} e + {\left (2 \, b c^{3} d - 4 \, a c^{3} e - {\left (b^{3} c - 6 \, a b c^{2}\right )} f\right )} x^{4} + {\left (2 \, b^{2} c^{2} d - 4 \, a b c^{2} e - {\left (b^{4} - 6 \, a b^{2} c\right )} f\right )} x^{2} - {\left (a b^{3} - 6 \, a^{2} b c\right )} f\right )} \sqrt {-b^{2} + 4 \, a c} \arctan \left (-\frac {{\left (2 \, c x^{2} + b\right )} \sqrt {-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right ) + 4 \, {\left (a b^{2} c^{2} - 4 \, a^{2} c^{3}\right )} d - 2 \, {\left (a b^{3} c - 4 \, a^{2} b c^{2}\right )} e + 2 \, {\left (a b^{4} - 6 \, a^{2} b^{2} c + 8 \, a^{3} c^{2}\right )} f + {\left ({\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} f x^{4} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} f x^{2} + {\left (a b^{4} - 8 \, a^{2} b^{2} c + 16 \, a^{3} c^{2}\right )} f\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, {\left (a b^{4} c^{2} - 8 \, a^{2} b^{2} c^{3} + 16 \, a^{3} c^{4} + {\left (b^{4} c^{3} - 8 \, a b^{2} c^{4} + 16 \, a^{2} c^{5}\right )} x^{4} + {\left (b^{5} c^{2} - 8 \, a b^{3} c^{3} + 16 \, a^{2} b c^{4}\right )} x^{2}\right )}}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.62 (sec) , antiderivative size = 191, normalized size of antiderivative = 1.16 \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\frac {{\left (2 \, b c^{2} d - 4 \, a c^{2} e - b^{3} f + 6 \, a b c f\right )} \arctan \left (\frac {2 \, c x^{2} + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{2 \, {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} \sqrt {-b^{2} + 4 \, a c}} + \frac {f \log \left (c x^{4} + b x^{2} + a\right )}{4 \, c^{2}} + \frac {2 \, a c^{2} d - a b c e + a b^{2} f - 2 \, a^{2} c f + {\left (b c^{2} d - b^{2} c e + 2 \, a c^{2} e + b^{3} f - 3 \, a b c f\right )} x^{2}}{2 \, {\left (c x^{4} + b x^{2} + a\right )} {\left (b^{2} - 4 \, a c\right )} c^{2}} \]
[In]
[Out]
Time = 9.66 (sec) , antiderivative size = 1651, normalized size of antiderivative = 10.01 \[ \int \frac {x^3 \left (d+e x^2+f x^4\right )}{\left (a+b x^2+c x^4\right )^2} \, dx=\text {Too large to display} \]
[In]
[Out]